package com.demo.annotation_b_web;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAnnoWeb {
    
    @Test
    public void test2(){
        String xmlPath="com/demo/annotation_b_web/beans.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(xmlPath);
        StudentAction studentActionId = (StudentAction) applicationContext.getBean("studentActionId");
        studentActionId.execute();
    }
}
